package com.jvm.simulation.hotspot.attributes;

import com.jvm.simulation.hotspot.AccessFlags;
import lombok.Data;

@Data
public class BootstrapMethods extends AttributeInfo {

    @Data
    public class Item extends AttributeInfo.Item {
        private int bootstrapMethodIdx;
        private String bootstrapMethodName;
        private int argumentLength;
        private Argument[] arguments;
        private int innerNameIdx;
        private String innerName;
        private AccessFlags accessFlags;

        public void initArgument(){
            arguments = new Argument[argumentLength];
        }

        @Data
        public class Argument{

            int argumentIdx;
            String argumentName;
        }
    }
}
